package querydsl.domain;

import com.querydsl.core.types.Path;
import com.querydsl.core.types.PathMetadata;
import com.querydsl.core.types.dsl.BooleanPath;
import com.querydsl.core.types.dsl.DateTimePath;
import com.querydsl.core.types.dsl.NumberPath;
import com.querydsl.core.types.dsl.StringPath;
import com.querydsl.sql.ColumnMetadata;

import javax.annotation.Generated;
import java.sql.Types;

import static com.querydsl.core.types.PathMetadataFactory.forVariable;


/**
 * QWpUsers is a Querydsl query type for WpUsers
 */
@Generated("com.querydsl.sql.codegen.MetaDataSerializer")
public class QWpUsers extends com.querydsl.sql.RelationalPathBase<WpUsers> {

    private static final long serialVersionUID = -1493473435;

    public static final QWpUsers wpUsers = new QWpUsers("wp_users");

    public final StringPath activationKey = createString("activationKey");

    public final StringPath createBy = createString("createBy");

    public final DateTimePath<java.sql.Timestamp> created = createDateTime("created", java.sql.Timestamp.class);

    public final BooleanPath dataValid = createBoolean("dataValid");

    public final BooleanPath deleted = createBoolean("deleted");

    public final StringPath displayName = createString("displayName");

    public final StringPath email = createString("email");

    public final NumberPath<Long> id = createNumber("id", Long.class);

    public final StringPath loginName = createString("loginName");

    public final StringPath maps = createString("maps");

    public final DateTimePath<java.sql.Timestamp> modified = createDateTime("modified", java.sql.Timestamp.class);

    public final StringPath modifyBy = createString("modifyBy");

    public final StringPath nicename = createString("nicename");

    public final StringPath ownerOrg = createString("ownerOrg");

    public final StringPath password = createString("password");

    public final DateTimePath<java.sql.Timestamp> registered = createDateTime("registered", java.sql.Timestamp.class);

    public final BooleanPath spam = createBoolean("spam");

    public final NumberPath<Integer> status = createNumber("status", Integer.class);

    public final StringPath url = createString("url");

    public final NumberPath<java.math.BigDecimal> weight = createNumber("weight", java.math.BigDecimal.class);

    public final com.querydsl.sql.PrimaryKey<WpUsers> primary = createPrimaryKey(id);

    public QWpUsers(String variable) {
        super(WpUsers.class, forVariable(variable), "null", "wp_users");
        addMetadata();
    }

    public QWpUsers(String variable, String schema, String table) {
        super(WpUsers.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QWpUsers(String variable, String schema) {
        super(WpUsers.class, forVariable(variable), schema, "wp_users");
        addMetadata();
    }

    public QWpUsers(Path<? extends WpUsers> path) {
        super(path.getType(), path.getMetadata(), "null", "wp_users");
        addMetadata();
    }

    public QWpUsers(PathMetadata metadata) {
        super(WpUsers.class, metadata, "null", "wp_users");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(activationKey, ColumnMetadata.named("activation_key").withIndex(8).ofType(Types.VARCHAR).withSize(60).notNull());
        addMetadata(createBy, ColumnMetadata.named("create_by").withIndex(15).ofType(Types.VARCHAR).withSize(32));
        addMetadata(created, ColumnMetadata.named("created").withIndex(16).ofType(Types.TIMESTAMP).withSize(19));
        addMetadata(dataValid, ColumnMetadata.named("data_valid").withIndex(20).ofType(Types.BIT));
        addMetadata(deleted, ColumnMetadata.named("deleted").withIndex(12).ofType(Types.BIT));
        addMetadata(displayName, ColumnMetadata.named("display_name").withIndex(10).ofType(Types.VARCHAR).withSize(250));
        addMetadata(email, ColumnMetadata.named("email").withIndex(5).ofType(Types.VARCHAR).withSize(100));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.BIGINT).withSize(19).notNull());
        addMetadata(loginName, ColumnMetadata.named("login_name").withIndex(2).ofType(Types.VARCHAR).withSize(60).notNull());
        addMetadata(maps, ColumnMetadata.named("maps").withIndex(14).ofType(Types.LONGVARCHAR).withSize(65535));
        addMetadata(modified, ColumnMetadata.named("modified").withIndex(18).ofType(Types.TIMESTAMP).withSize(19));
        addMetadata(modifyBy, ColumnMetadata.named("modify_by").withIndex(17).ofType(Types.VARCHAR).withSize(32));
        addMetadata(nicename, ColumnMetadata.named("nicename").withIndex(4).ofType(Types.VARCHAR).withSize(50));
        addMetadata(ownerOrg, ColumnMetadata.named("owner_org").withIndex(19).ofType(Types.VARCHAR).withSize(32));
        addMetadata(password, ColumnMetadata.named("password").withIndex(3).ofType(Types.VARCHAR).withSize(64));
        addMetadata(registered, ColumnMetadata.named("registered").withIndex(7).ofType(Types.TIMESTAMP).withSize(19));
        addMetadata(spam, ColumnMetadata.named("spam").withIndex(11).ofType(Types.BIT));
        addMetadata(status, ColumnMetadata.named("status").withIndex(9).ofType(Types.INTEGER).withSize(10));
        addMetadata(url, ColumnMetadata.named("url").withIndex(6).ofType(Types.VARCHAR).withSize(100));
        addMetadata(weight, ColumnMetadata.named("weight").withIndex(13).ofType(Types.DECIMAL).withSize(10).withDigits(5));
    }

}

